package com.itheima.web.controller;

import org.junit.Test;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo")
public class TestController {

    @RequestMapping(value = "/save") //设置方法的访问路径
    public String sayHello() {
        System.out.println(" 恭喜您访问到了方法 ");
        return "success.jsp";
    }

}
